package com.example.demo.dao;

import com.example.demo.pojo.Usercoupon;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UsercouponDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Usercoupon record);

    int insertSelective(Usercoupon record);

    //查询所有优惠卷
    @Select("select * from usercoupon")
    List<Usercoupon> select();

    Usercoupon selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Usercoupon record);

    int updateByPrimaryKey(Usercoupon record);
}